package org.example.exp2.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;
import org.example.exp2.common.Links;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author wml
 * @since 2024-06-06 03:32:50
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("book")
@ApiModel(value = "Book对象", description = "")
public class Book implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "bookId", type = IdType.AUTO)
    private int bookId;

    @TableField("title")
    private String title;

    @TableField("author")
    private String author;

    @TableField("isbn")
    private String isbn;

    @TableField("available")
    private boolean available;
}
